package day07.dao;

import day07.entity.User;

import java.sql.Connection;
import java.util.List;

public interface UserDao {

    int save(Connection connection, String s, Long id, String name, String password, String address);

    User queryById(Connection connection, String s, Class<User> userClass, Long id);

    int update(Connection connection, String s, String name, String password, String address, Long id);

    int delete(Connection connection, String s, Long id);

    List<User> queryAll(Connection connection, String s);
}
